package com.iotimc.attendancesystem.entity;

import android.text.TextUtils;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

/**
 *
 * @author cwj
 * @date 2017/11/28
 */

@Entity
public class SystemEntity {
    @Id(autoincrement = true)
    private Long id;
    @Unique
    private String title;
    private String content;
    private String notice;

    private String img64;
    @Generated(hash = 4620759)
    public SystemEntity(Long id, String title, String content, String notice,
            String img64) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.notice = notice;
        this.img64 = img64;
    }
    @Generated(hash = 1990949552)
    public SystemEntity() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }


    public boolean isEmpty() {
        return TextUtils.isEmpty(getContent())&&TextUtils.isEmpty(getImg64())&&TextUtils.isEmpty(getNotice())&&TextUtils.isEmpty(getTitle());
    }

    public String getImg64() {
        return this.img64;
    }
    public void setImg64(String img64) {
        this.img64 = img64;
    }
    public String getNotice() {
        return this.notice;
    }
    public void setNotice(String notice) {
        this.notice = notice;
    }



}
